package com.多线程07.demo01;

public class MyThread01 extends Thread{


    public void run() {
        for (int i=0;i<100;i++){
            System.out.println(i);
        }
    }

    public static void main(String[] args) {
        MyThread01 myThread01 = new MyThread01();
//        myThread01.run();//线程的运行能直接调用run方法吗？

        //线程的执行应该调用start方法
        myThread01.start();


        MyThread01 myThread02 = new MyThread01();
        myThread02.start();


    }



}
